import request from '@/utils/request'
import fileRequest from '@/utils/file'

export function list(params){
  return request({
    url:'/enjoy/getEnjoyList',
    method:'GET',
    params
  })
}

export function save(data){
  return request({
    url:'/enjoy/insertEnjoy',
    method:'POST',
    data
  })
}

export function importEnjoy(data){
  return request({
    url:'/import/importEnjoy',
    method:'POST',
    data
  })
}

/**
 * 导出
 * @param data
 * @returns {*}
 */
export function exportRoster(data) {
  return fileRequest({
    url: '/excel/enjoyExcel',
    method: 'POST',
    data: data,
    responseType:'blob'
  })
}
